import time
import uuid
from orm import Model, StringField, BooleanField, FloatField, TextField, IntegerField


def next_id():
    return '%015d%s000' % (int(time.time() * 1000), uuid.uuid4().hex)


class Game(Model):
    __table__ = 'tb_game'

    game_id = IntegerField(primary_key=True)
    game_name = StringField(ddl='varchar(50)')
    game_tab = StringField(ddl='varchar(100)')
    game_score = FloatField()
    game_date = StringField(ddl='varchar(50)')
    game_brief_introduction = TextField()
    game_manufacturer = StringField(ddl='varchar(50)')
